package cn.bj.yu.single;

/**
 * @author 周宇
 * @create 2020-08-16 2:43
 * 饿汉式 资源浪费
 */
public class Hungry_Bug {
    private byte[] data1 = new byte[1024];
    private byte[] data2 = new byte[1024];
    private byte[] data3 = new byte[1024];
    private byte[] data4 = new byte[1024];

    private Hungry_Bug() {
    }

    private final static Hungry_Bug hungry = new Hungry_Bug();

    public static Hungry_Bug getInstance() {
        return hungry;
    }
}